<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
    <head>
        <!-- 指定字符集 -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>修改用户</title>

        <link href="css/bootstrap.min.css" rel="stylesheet">
        <script src="js/jquery-2.1.0.min.js"></script>
        <script src="js/bootstrap.min.js"></script>

    </head>
    <body>
    <div class="container">
        <center><h3>修改用户信息页面</h3></center>
        <form action="${pageContext.request.contextPath}/updateUserServlet" method="post">
<%--            隐藏域提交id--%>
            <input type="hidden" name="uid" value="${user.uId}">
            <div class="form-group">
                <label for="userName">用户名：</label>
                <input type="text" class="form-control" id="userName" name="userName" value="${user.userName}">
            </div>

            <div class="form-group">
                <label for="password">密码:</label>
                <input type="password" class="form-control" id="password" name="password" value="${user.password}">
            </div>

            <div class="form-group">
                <label for="address">地址:</label>
                <input type="text" class="form-control" id="address" name="address" value="${user.address}">
            </div>

            <div class="form-group">
                <label for="contact">联系方式:</label>
                <input type="text" class="form-control" id="contact" name="contact" value="${user.contact}">
            </div>

            <div class="form-group">
                <label for="jianjie">简介:</label>
                <input type="text" class="form-control" id="jianjie" name="jianjie" value="${user.jianjie}">
            </div>

            <div class="form-group">
                <label>身份:</label>
                <input type="radio" name="userType" value="1" checked="checked"/>管理员
                <input type="radio" name="userType" value="2"/>商家
                <input type="radio" name="userType" value="3"/>用户
                <input type="radio" name="userType" value="4"/>游客
            </div>
            <div class="form-group" style="text-align: center">
                <input class="btn btn-primary" type="submit" value="提交" />
                <input class="btn btn-default" type="reset" value="重置" />
                <a class="btn btn-default" href="javascript:history.go(-1)">返回</a></td>
            </div>
        </form>
    </div>
    </body>
</html>